package com.yuju.vo.login;



import java.io.Serializable;
import java.util.Date;

import com.yuju.common.BaseVO;
import com.yuju.common.fileld.validator.Rule.NonNull;

/**
 * 
 * 类名：RoleVO  <br />
 *
 * 功能：
 *
 * @author : zhousc <br />
 * @Date : 2017年12月4日 上午10:15:22  <br />
 * @version : 1.1 <br />
 */
public class RoleVO extends BaseVO implements Serializable {
	// 当前页码
	@NonNull(message = "页数不能为空", serviceLine = "pager")
	private Integer page;
	// 每页显示记录数
	@NonNull(message = "每页显示行数不能为空", serviceLine = "pager")
	private Integer pageSize;
    /**
     *  主键。存储UUID，由应用生成。,所属表字段为sys_role.id
     */
	@NonNull(message = "ID不能为空", serviceLine = "update,del,get")
    private String id;

    /**
     *  名称。,所属表字段为sys_role.name
     */
	@NonNull(message = "名称不能为空", serviceLine = "update,save")
    private String name;

    /**
     *  角色类型。1集团，2分店。,所属表字段为sys_role.role_type
     */
    private Byte roleType;

    /**
     *  ,所属表字段为sys_role.status
     */
    private Byte status;

    /**
     *  ,所属表字段为sys_role.gmt_delete
     */
    private Date gmtDelete;

    /**
     *  创建时间。,所属表字段为sys_role.gmt_create
     */
    private Date gmtCreate;

    /**
     *  修改时间。,所属表字段为sys_role.gmt_modified
     */
    private Date gmtModified;

    /**
     *  是否逻辑删除。1表示已逻辑删除，2表示未逻辑删除，默认为2。,所属表字段为sys_role.is_deleted
     */
    private Byte isDeleted;

    /**
     *  所属集团。外键，引用集团信息表（grp_group）的主键（id）。,所属表字段为sys_role.group_id
     */
    @NonNull(message = "集团ID不能为空", serviceLine = "update,save")
    private String groupId;
    //----新增属性----------------------------------------
    /**
     * 菜单数组
     */
    private String[] menuIds;
    private static final long serialVersionUID = 1L;
	public Integer getPage() {
		return page;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Byte getRoleType() {
		return roleType;
	}
	public void setRoleType(Byte roleType) {
		this.roleType = roleType;
	}
	public Byte getStatus() {
		return status;
	}
	public void setStatus(Byte status) {
		this.status = status;
	}
	public Date getGmtDelete() {
		return gmtDelete;
	}
	public void setGmtDelete(Date gmtDelete) {
		this.gmtDelete = gmtDelete;
	}
	public Date getGmtCreate() {
		return gmtCreate;
	}
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}
	public Date getGmtModified() {
		return gmtModified;
	}
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
	public Byte getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(Byte isDeleted) {
		this.isDeleted = isDeleted;
	}
	public String getGroupId() {
		return groupId;
	}
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	public String[] getMenuIds() {
		return menuIds;
	}
	public void setMenuIds(String[] menuIds) {
		this.menuIds = menuIds;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public RoleVO() {
		super();
		// TODO Auto-generated constructor stub
	}
	public RoleVO(Integer page, Integer pageSize, String id, String name, Byte roleType, Byte status, Date gmtDelete,
			Date gmtCreate, Date gmtModified, Byte isDeleted, String groupId, String[] menuIds) {
		super();
		this.page = page;
		this.pageSize = pageSize;
		this.id = id;
		this.name = name;
		this.roleType = roleType;
		this.status = status;
		this.gmtDelete = gmtDelete;
		this.gmtCreate = gmtCreate;
		this.gmtModified = gmtModified;
		this.isDeleted = isDeleted;
		this.groupId = groupId;
		this.menuIds = menuIds;
	}
    
    
}